package com.xcoc.appoinment;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import com.xcoc.account.Dentist;
import com.xcoc.account.Patient;


@Entity
public class Appointment implements Serializable {
		
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	
	@ManyToOne
	private Dentist dentist;
	
	@ManyToOne
	private Patient patient;

	@OneToMany
	private List<AppointmentItem> items;
	
	
}
